import React, { Component } from 'react'
import Son from './Son'
import context from './context'
import context1 from './context1'
export default class Far extends Component {
  // context接收数据方式二:
  static contextType = context
  render() {
    console.log(this.context) //获取到app中传递的数据
    return (
      // <context1.Provider value={'hahhaahh'}>
      <div>
        Far
        <hr />
        <Son></Son>
      </div>
      // </context1.Provider>
    )
  }
}
